﻿using PMS.Data.Entities.Customers;
using PMS.Data.Entities.Medias;
using PMS.Services.EntityServices;
using PMS.Services.Utils;
using PMS.Services.Utils.Events;

namespace PMS.Services.EventHandler.Caching
{
    /// <summary>
    /// Represents a MediaFile cache event consumer
    /// </summary>
    public partial class MediaFileCacheEventHandler 
        : CacheEventHandler<MediaFile>
    {
        #region Methods

        /// <summary>
        /// 分别针对Insert/Update/Delete进行操作，
        /// 如果操作逻辑相同，可以调用 ClearCache(Setting entity)
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="entityEventType"></param>
        protected override void ClearCache(MediaFile entity, EntityEventType entityEventType)
        {
            ClearCache(entity);
        }
        /// <summary>
        /// Clear cache data
        /// </summary>
        /// <param name="entity">Entity</param>
        protected override void ClearCache(MediaFile entity)
        {
        }

        #endregion
    }

}
